package com.xhu.controller;

import com.xhu.service.PermissionService;
import com.xhu.utils.ResponseMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/permission")
public class PermissionController {
    @Autowired
    private PermissionService permissionService;

    @GetMapping("/permissionList/{username}")
    public ResponseMessage permissionList(@PathVariable String username){
        return permissionService.permissionList(username);
    }
}
